package com.bmps.springcloud.insuredmicroservice.model.trail.response;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author :  zlc
 * @Date : 2019/9/10 11:42
 **/
public class TrailResponseModel implements Serializable {
    
    private String resultCode;
    
    private String resultMessage;

    private BigDecimal bigDecimal;

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(String resultMessage) {
        this.resultMessage = resultMessage;
    }

    public BigDecimal getBigDecimal() {
        return bigDecimal;
    }

    public void setBigDecimal(BigDecimal bigDecimal) {
        this.bigDecimal = bigDecimal;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {return true;}

        if (o == null || getClass() != o.getClass()) {return false;}

        TrailResponseModel that = (TrailResponseModel) o;

        return new EqualsBuilder()
                .append(resultCode, that.resultCode)
                .append(resultMessage, that.resultMessage)
                .append(bigDecimal, that.bigDecimal)
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37)
                .append(resultCode)
                .append(resultMessage)
                .append(bigDecimal)
                .toHashCode();
    }

    @Override
    public String toString() {
        return "TrailResponseModel{" +
                "resultCode='" + resultCode + '\'' +
                ", resultMessage='" + resultMessage + '\'' +
                ", bigDecimal=" + bigDecimal +
                '}';
    }
}
